import Home from '../views/Home.vue';
const routes = [
  {
    path: '/repos',
    name: 'Repos',
    component: () => import('../views/Repos.vue'),
  },
  {
    path: '/about',
    name: 'About',
    //require和import异步加载
    //component: () => import('../views/About.vue'),
    component: resolve => require(['../views/About.vue'], resolve),
  },
  {
    path: '/',
    //redirect: '/home',
    component: Home,
  },
];

export default routes;
